package com.onpositive.mediawiki.propertyparser;

import java.util.Map;

import storage.v1.ParserV2;

import com.onpositive.semantic.model.api.meta.IMeta;
import com.onpositive.semantic.model.api.property.IPropertyProvider;
import com.onpositive.units.AbstractPreprocessor;
import com.onpositive.units.AbstractValueParser;
import com.onpositive.units.ParsedString;
import com.onpositive.units.ParsedValue;

public class StringValueParser extends AbstractValueParser {
	
	public StringValueParser(){
		super( ParsedString.ID ) ;
	}

	@Override
	public ParsedValue parse(String s, IMeta meta, IPropertyProvider propertyProvider,Map<String,Object> metaInfo, String comment) {
		String value = s;//ParserV2.killWikiRefsLeaveCaptions(s) ;
		//value = value.replaceAll( "\\[|\\]|\\(|\\)|\\\"|\\'", "" ) ;
		return new ParsedString(value, getDefaultComment(comment));
	}

}
